const express = require('express');
const router = express.Router();
const metadataController = require('../controllers/metadata.controller');

// 更新或创建文件/文件夹元数据
router.post('/update', metadataController.upload.single('thumbnail'), metadataController.updateMetadata);

// 获取指定对象的元数据
router.get('/:cosKey', metadataController.getMetadata);

module.exports = router; 